package com.zsrt.java.day20161226.zzd.demo3;

import java.util.Scanner;

public class RunNianTest1 {
	public static void demo(int a) {
    	if(a%400==0||a%4==0&&a%100!=0){
    		System.out.println("今年是闰年...");
    	}else{
    		System.out.println("今年不是闰年...");
    	}
	}
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
  	    System.out.println("请输入合法的年份：");
  	    int a=sc.nextInt();
  	    demo(a);
  	    sc.close();
		
	}
}
